package com.guoxin.thread.extthread.t3;

public class MyThread extends Thread {

    private int count = 5;

    public MyThread(String name){
        this.setName(name);
    }

    @Override
    public void run() {
       while (count>0){
           count--;
           System.out.println(Thread.currentThread().getName()+"---"+count);
       }
    }
}
